<template>
	<view class="content">

		<!-- 		<view class="baseCon" style="margin-top: 12px;">
			<view class="baseItem" @click="goPage('/pages/my/areaM')">
				<view class="baseItemlef">
					<image class="myIcons" src="@/static/area.png"></image>
					<view>地址管理</view>
				</view>
				<view class="baseItemrig">
					<uni-icons type="right" color="#979797" size="20"></uni-icons>
				</view>
			</view>
		</view> -->


		<view class="logOutbtn" @click="logOut">退出登录</view>


	</view>
</template>

<script>
	// #ifdef MP-WEIXIN
	import headBar from '@/components/headerBar/headBar2.vue'
	// #endif
	// #ifdef H5
	import headBar from '@/components/headerBar/kongbai.vue'
	// #endif
	import {
		userInfocookie,
		removeToken,
		setUserInfo,
	} from '@/utils/auth.js'
	import {
		getUserInfo,
	} from '@/request/api.js'

	export default {
		components: {
			headBar
		},
		data() {
			return {
				uInfo: {},
				companyList: [],
			}
		},
		onShareAppMessage() {

		},
		mounted() {
			this.uInfo = userInfocookie()
		},
		onShow() {

		},
		methods: {

			// exitCompany(e) {
			// 	const that = this
			// 	uni.showModal({
			// 		title: '提示',
			// 		content: '确认退出企业？',
			// 		success: function(res) {
			// 			if (res.confirm) {
			// 				exitcompany({
			// 					companyId: e.companyId
			// 				}).then(res => {
			// 					that.userPower()
			// 					that.userDetail()
			// 				})
			// 			}
			// 		}
			// 	});

			// },
			logOut() {
				removeToken()
				uni.reLaunch({
					url: '/pages/login/login'
				})
			},
		}
	}
</script>

<style scoped>

</style>